package cn.gyxy.controller;

import cn.gyxy.pojo.Guanli;
import org.apache.shiro.SecurityUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PageController {
    //给权限标识传过去
    @RequestMapping("/lgbs/permission")
public Object  lgbspermission(){
        Guanli guanli= (Guanli) SecurityUtils.getSubject().getPrincipal();//获取登陆用户系信息
        return guanli.getPermission();
    }

}
